from wtforms_tornado import Form
from wtforms.validators import DataRequired, Length
from wtforms import StringField


class InsertAttributeForm(Form):
    product_id = StringField("产品id", validators=[
        DataRequired(message="请输入产品id"),
        Length(min=10, max=14, message="产品id长度不正确")
    ])
